package aop01;

import java.util.Date;

//代理类
public class SomeServicePorxy implements ISomeService {

    private ISomeService someService;

    public SomeServicePorxy() {
        someService=new SomeServiceImpl();
    }


    @Override
    public void doSome() {
        System.out.println("doSome execute at:"+new Date());
        someService.doSome();
    }

    @Override
    public void doOther() {
        System.out.println("doOther execute at:"+new Date());
        someService.doOther();
    }
}
